﻿
using System.Windows;
using System.Windows.Input;
using ETask.Client.ViewModels;

namespace ETask.Client.Views
{
    /// <summary>
    /// TaskWindow.xaml 的交互逻辑
    /// </summary>
    public partial class TaskWindow : Window
    {
        public TaskWindow()
        {
            InitializeComponent();
            this.DataContext = new TaskViewModel();
            ((TaskViewModel)DataContext).CloseRequested += (sender, e) => Close();
        }

        private void Grid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }
    }
}
